package com.domain;

import java.util.Date;

public class Document {
    private Integer id;
    private String filename;
    private Date createdate;
    private double filesize;
    private Integer downloadcount;
    private Integer member_id;
    private Integer resource_id;
    private Integer space_id;
    private Space space;
    private Resources resources;
    private Contribute contribute;

    public Integer getContribute_id() {
        return contribute_id;
    }

    public void setContribute_id(Integer contribute_id) {
        this.contribute_id = contribute_id;
    }

    private Integer contribute_id;
    public Contribute getContribute() {
        return contribute;
    }

    public void setContribute(Contribute contribute) {
        this.contribute = contribute;
    }

    @Override
    public String toString() {
        return "Document{" +
                "id=" + id +
                ", filename='" + filename + '\'' +
                ", createdate=" + createdate +
                ", filesize=" + filesize +
                ", downloadcount=" + downloadcount +
                ", member_id=" + member_id +
                ", resource_id=" + resource_id +
                ", space_id=" + space_id +
                ", space=" + space +
                ", resources=" + resources +
                ", contribute=" + contribute +
                '}';
    }



    public Resources getResources() {
        return resources;
    }

    public void setResources(Resources resources) {
        this.resources = resources;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public double getFilesize() {
        return filesize;
    }

    public void setFilesize(double filesize) {
        this.filesize = filesize;
    }

    public Integer getDownloadcount() {
        return downloadcount;
    }

    public void setDownloadcount(Integer downloadcount) {
        this.downloadcount = downloadcount;
    }

    public Integer getMember_id() {
        return member_id;
    }

    public void setMember_id(Integer member_id) {
        this.member_id = member_id;
    }

    public Integer getResource_id() {
        return resource_id;
    }

    public void setResource_id(Integer resource_id) {
        this.resource_id = resource_id;
    }

    public Space getSpace() {
        return space;
    }

    public void setSpace(Space space) {
        this.space = space;
    }

    public Integer getSpace_id() {
        return space_id;
    }

    public void setSpace_id(Integer space_id) {
        this.space_id = space_id;
    }
}
